
import _request from '@/utils/request';

const baseUrl = '';
const request = (url, ...arg) => _request(baseUrl + url, ...arg);

export const QueryJobViewList = (obj) => request(`/job/sub/queryJobViewList`, obj); // 职位列表
export const GetCoinInfo = () => request(`/user/sign/getInfo`,  null ,'get'); // 签到情况
export const SignCenterData = () => request(`/user/signNew/getCenter`,  null ,'get'); // 签到中心数据
export const SignNew = (obj) => request(`/user/signNew/sign`,  obj); // 点击签到
export const GetSignDetail = (obj) => request(`/user/signNew/getSignDetail`,  obj); // 签到明细
export const GoToCmp = (obj) => request(`/user/signNew/goToCmp`,  obj); // 第一天点击去完成
export const StartView = (obj) => request(`/user/signnew/startView`, obj); // 开始浏览职位
export const EndView = (obj) => request(`/user/signnew/cmpJobView`, obj); // 结束浏览职位
export const GetJobViewed = () => request(`/user/signnew/querList`,  null ,'get'); // 当天已浏览职位
export const ReceiveBag = (obj) => request(`/user/signNew/receiveBag`, obj); // 领取红包
export const GetRejectDetail = (obj) => request(`/job/taskSubmit/getRejectDetail`, obj); // 获取不合格原因
export const QueryAllMyTasks = (obj) => request(`/job/taskSubmit/queryList`, obj); // 获取所有进度
export const QueryCoinList = (obj) => request(`/user/signNew/queryUserList`, obj); // 金币明细
export const QueryDiscounts = (params) => request(`/user/signGroupac/queryDetail?${params}`, null, 'get'); // 优惠折扣数据
export const QueryDiscountUrl = (obj) => request(`/user/signGroupac/getUrl`, obj); // 优惠折扣数据
export const QueryEffectiveBags = () => request(`/user/signNew/getBagData`, null, 'get'); // 可领取签到红包列表
export const FinishJobShare = (obj) => request(`/user/signNew/cmpSignTask`, obj) // 完成分享


// 视频相关

export const GetAccout = () => request(`/user/ac2/getAccout`, null, 'get') // 获取观看账户信息
export const GetCurFilms = () => request(`/user/ac2/getCurFilms`, null, 'get') // 第一次获取
export const GetNextFilms = (obj) => request(`/user/ac2/getNextFilms`, obj) // 获取下一集（部）
export const ReceiveFirst = (obj) => request(`/user/ac2/recv`, obj) // 获取第一次奖励
export const FinishTask = (obj) => request(`/user/ac2/cmpTask`, obj); // 1 3分钟 210分钟 3打卡 5玩游戏 8转圈
export const RecvDaily = (obj) => request(`/user/ac2/recvDaily`, obj); // 每日签到领奖励
export const VideoCmpJobView = (obj) => request(`/user/ac2/cmpView`, obj) // 视频活动完成职位浏览
export const GetMoneyDetail = () => request(`/user/ac2/getWdetail`, null, 'get'); // 视频提现详情
export const ApplyWithdrawal = (obj) => request(`/user/ac2/applyTx`, obj); // 申请提现接口
export const MingxiList = (obj) => request(`/user/ac2/queryTransList`, obj); // 明细列表
export const TransCoinToCash = (obj) => request(`/user/ac2/transAmount`, obj); // 金币兑换
export const QueryWatchHistories = (obj) => request(`/user/ac2/queryHisList`, obj); // 观看历史
export const QueryJobList = (obj) => request(`/job/sub/queryJobList`, obj); // 推荐职位


export const queryMoneyDetail = () => request(`/user/signGrouptx/getDetail`, null, 'get');

export const savePayAccount = (obj) => request(`/accout/userPayaccount/save`, obj);

export const applyTx = (obj) => request(`/user/signGrouptx/applyTx`, obj);

export const queryTaskDetail = (obj) => request(`/job/taskSubmit/getTaskDetail`, obj);

export const taskApply = (obj) => request(`/job/taskSubmit/apply`, obj);

export const giveUpTask = (obj) => request(`/job/taskSubmit/giveUpTask`, obj);

export const submitTask = (obj) => request(`/job/taskSubmit/submitTask`, obj);

export const queryUserList = (obj) => request(`/user/signGrouptx/queryUserList`, obj);





